﻿using FellowshipOne.API.Groups.Sets;

namespace FellowshipOne.API.Realms {
    public class Groups {
        #region Properties
        F1OAuthTicket _ticket { get; set; }
        string _baseUrl { get; set; }

        private Member _member;

        public Member Member
        {
            get
            {
                if (_member == null)
                {
                    _member = new Member(_ticket, _baseUrl);
                }
                return _member;
            }
        }

        #endregion
        #region Constructor
        public Groups(F1OAuthTicket ticket, string baseUrl) {
            _ticket = ticket;
            _baseUrl = baseUrl;
        }
        #endregion Constructor
    }
}
